import BuffUtil from '@/BuffUtil';
import UnitSpellEvent from '@/event/UnitSpellEvent';
export default class Item_光滑皮毛 {
    static id = 'Aghp';
    static 名称: string = '光滑皮毛';
    static 描述: string = '增加你的闪避';
    static 图标: string = 'assets\\item\\INV_Cape_Plate_KultirasQuest_B_01.blp';
    static buffId: string = 'buff_item_guanghuapimao';
    static buffType: AppBuffType = {
        id: 'buff_item_guanghuapimao',
        name: Item_光滑皮毛.名称,
        ubertip: Item_光滑皮毛.描述,
        art: Item_光滑皮毛.图标,
        attribute: {
            闪避_Item_光滑皮毛: 0.35,
        },
        dur: 5,
        targetArt: 'Abilities\\Spells\\Other\\Tornado\\Tornado_Target.mdl',
        targetAttach: 'origin',
    };
    static 释放(x: number, y: number, 来源?: unit, 目标?: unit, d?: any) {
        BuffUtil.addBuff(来源, Item_光滑皮毛.buffId, 来源);
    }
    constructor() {
        BuffUtil.registerBuffType(Item_光滑皮毛.buffType);
        se.onUnitSpellEffect(Item_光滑皮毛.spellEffect, Item_光滑皮毛.id);
    }
    static spellEffect(this: void, d: UnitSpellEvent) {
        Item_光滑皮毛.释放(d.spellTargetX, d.spellTargetY, d.trigUnit, d.spellTargetUnit, d);
    }
}
